package com.dm.home.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dm.common.utils.DubboUtil;
import com.dm.home.mapper.ItemMapper;
import com.dm.home.service.ItemService;
import com.dm.module.DmArea;
import com.dm.module.DmItemTypeInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;


@Service(version = DubboUtil.VERSION_1, group = DubboUtil.GROUP_NAME)
@Component
public class ItemServiceImpl implements ItemService {

    @Autowired
    private ItemMapper itemMapper;

    @Override
    public DmArea queryAreaById(Long cityId) {
        return itemMapper.queryAreaById(cityId);
    }

    @Override
    public List<DmItemTypeInfo> queryCityById(Long cityId) {
        return itemMapper.queryCityById(cityId);
    }
}
